﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A97 RID: 2711
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LockEquipmentScRsp : IMessage<LockEquipmentScRsp>, IMessage, IEquatable<LockEquipmentScRsp>, IDeepCloneable<LockEquipmentScRsp>, IBufferMessage
	{
		// Token: 0x1700222F RID: 8751
		// (get) Token: 0x06007936 RID: 31030 RVA: 0x0014381C File Offset: 0x00141A1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LockEquipmentScRsp> Parser
		{
			get
			{
				return LockEquipmentScRsp._parser;
			}
		}

		// Token: 0x17002230 RID: 8752
		// (get) Token: 0x06007937 RID: 31031 RVA: 0x00143823 File Offset: 0x00141A23
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LockEquipmentScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002231 RID: 8753
		// (get) Token: 0x06007938 RID: 31032 RVA: 0x00143835 File Offset: 0x00141A35
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LockEquipmentScRsp.Descriptor;
			}
		}

		// Token: 0x06007939 RID: 31033 RVA: 0x0014383C File Offset: 0x00141A3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LockEquipmentScRsp()
		{
		}

		// Token: 0x0600793A RID: 31034 RVA: 0x00143844 File Offset: 0x00141A44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LockEquipmentScRsp(LockEquipmentScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600793B RID: 31035 RVA: 0x00143869 File Offset: 0x00141A69
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LockEquipmentScRsp Clone()
		{
			return new LockEquipmentScRsp(this);
		}

		// Token: 0x17002232 RID: 8754
		// (get) Token: 0x0600793C RID: 31036 RVA: 0x00143871 File Offset: 0x00141A71
		// (set) Token: 0x0600793D RID: 31037 RVA: 0x00143879 File Offset: 0x00141A79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600793E RID: 31038 RVA: 0x00143882 File Offset: 0x00141A82
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LockEquipmentScRsp);
		}

		// Token: 0x0600793F RID: 31039 RVA: 0x00143890 File Offset: 0x00141A90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LockEquipmentScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007940 RID: 31040 RVA: 0x001438C0 File Offset: 0x00141AC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007941 RID: 31041 RVA: 0x001438FF File Offset: 0x00141AFF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007942 RID: 31042 RVA: 0x00143907 File Offset: 0x00141B07
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007943 RID: 31043 RVA: 0x00143910 File Offset: 0x00141B10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007944 RID: 31044 RVA: 0x00143944 File Offset: 0x00141B44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007945 RID: 31045 RVA: 0x00143982 File Offset: 0x00141B82
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LockEquipmentScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007946 RID: 31046 RVA: 0x001439B3 File Offset: 0x00141BB3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007947 RID: 31047 RVA: 0x001439BC File Offset: 0x00141BBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 104U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002E60 RID: 11872
		private static readonly MessageParser<LockEquipmentScRsp> _parser = new MessageParser<LockEquipmentScRsp>(() => new LockEquipmentScRsp());

		// Token: 0x04002E61 RID: 11873
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002E62 RID: 11874
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04002E63 RID: 11875
		private uint retcode_;
	}
}
